package org.spring.blog.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Entity
@Table(name = "tb_refresh_token")
public class RefreshToken {

    @Id
    @Column(name = "id")
    private String id;

    @Column(name = "refresh_token")
    private String refreshToken;

    @Column(name = "user_id")
    private String userID;

    @Column(name = "token_key")
    private String tokenKey;

    @Column(name = "mobile_token_key")
    private String mobileTokenKey;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;
}
